﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RPGClient
{
    public partial class MainForm : Form
    {
        RPGNETClient _client;
        RPGNETRequest _request;

        public MainForm()
        {
            InitializeComponent();

            _client = new RPGNETClient();
            _request = new RPGNETRequest(_client);
        }

        private void _ctlBtnConnect_Click(object sender, EventArgs e)
        {
            _client.Connect();
        }

        private void _ctlBtnLogin_Click(object sender, EventArgs e)
        {
            _request.Login("str-machine-id", "str-account", "str-password");
        }

        private void _ctlBtnDisconnect_Click(object sender, EventArgs e)
        {
            _client.DisConnect();
        }
    }
}
